<?
$id += 0;
$hotel = new Hotel();
$hotel->select($id);
$location = new Location();
$location->select($hotel->getlocation());
$link = "http://".$_SERVER['HTTP_HOST']."/khach-san-chi-tiet/$id/";
?>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<div class='tour_left'>
	<div class='title_1 cufon' style='width:595px;'>
        Giới thiệu Khách sạn
    </div>
    <div class='tour_title' style='padding-top:10px;padding-bottom:10px;color:#2E3192;font-weight:bold;'><?=$hotel->getname()?></div>
    
    <div class='slide_tour'>
    	<div class='slide'>
        	<div id='container'>
                <div class="wt-rotator">
                    <img id="bg-img" src="/images/spacer.png"/>
                    <a href="#"><img id="main-img" src="/images/spacer.png"/></a>
                    <div class="preloader"><img src="/images/ajax-loader.gif"/></div>
                    <div class="c-panel">
                        <div class="thumbnails">
                            <ul>
                            <? 	 
                                $pictures = $hotel->getAllPictures();
								foreach ($pictures as $picture)
								{
							?>
                                <li>
                                    <a rel="example_group" href="<?=$picture->getPath('tour_ideas_')?>" title="<?=$picture->getname()?>"></a>
                                </li>
                            <? 
								}	
                            ?>	
                            </ul>
                        </div>
                    </div>
                </div>
                </div>
        </div>
        <script>
			$(document).ready(function()
			{
				$(".tour_menu_item").live('click',function()
				{
					if (!$(this).hasClass('active'))
					{
						$("#load_tour_content").css('opacity','0.5');
						$(".tour_menu_item").removeClass('active');
						var mod = $(this).attr('rel');
						var query = 'act=hotel_load_content&id=<?=$id?>&mod='+mod;
						$(this).addClass('active');
						$.ajaxIt(query,'/action.php',function(x)
						{
							x = $.trim(x);
							$("#load_tour_content").html(x);
							$("#load_tour_content").css('opacity','1');
						});
					}
				});
			});
		</script>
        <?
		$currency = new Currency();
		$currency->select($hotel->getCurrency());
		?>
        <div class='tour_information'>
        	<div class='tour_ideas_price' style='width:120px;background:none;margin:0 auto;color:#333;font-size:11px;'>Giá từ</div>
			<div class='tour_ideas_price' style='width:120px;margin:0 auto;margin-bottom:10px;'><?=lg_number::money($currency->getVND($hotel->getPrice()))?> VNĐ </div>
            <div style='padding:0 5px;line-height:18px;'>
            	<b>Thành phố : <span style='color:#186BBC;'><?=($location->getname())?></span></b><br />
                <b>Địa chỉ : <span style='color:#186BBC;'><?=($hotel->getaddress())?></span></b><br />
                <div>
                	<?
					for($i=0;$i<$hotel->getstar();$i++)
					{
					?>
                    <img src='/images/star.png' vspace="5" />
                    <?
					}
                    ?>
                </div>
            </div>
        </div>
        <div style='clear:both'></div>
    </div>
    
    <div class='tour_menu' style=''>
        <div class='tour_menu_item active' rel='description'>Giới thiệu</div>
        <div class='tour_menu_item' rel='map'>Vị trí</div>
        <div class='tour_menu_item' rel='rooms'>Hệ thống phòng</div>
        <div class='tour_menu_item' rel='facilities' style='margin-right:0;'>Tiện ích</div>
        <div class='tour_menu_item' rel='booking' style='margin-right:0;'>Đặt phòng</div>
        <div style='clear:both'></div>
    </div>
    
    <div class='tour_content' id='load_tour_content' rel="<?=$hotel->getid()?>">
    	<?=$hotel->getdescription()?>
    </div>
</div>
<div class='tour_right'>
<?
include('z_includes/hotel_right.php');
?>
</div>
<div style='clear:both'></div>